function getStudentList (params) {
  return $axios({
    url: '/student/page',
    method: 'get',
    params
  })
}


function addStudent (params) {
  return $axios({
    url: '/student',
    method: 'post',
    data: { ...params }
  })
}

function editStudent (params) {
  return $axios({
    url: '/student',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function queryStudentById (id) {
  return $axios({
    url: `/student/${id}`,
    method: 'get'
  })
}

const getStudentSelect = (params) => {
  return $axios({
    url: '/student/select',
    method: 'get',
    params
  })
}

const getStudentNoSelect = (params) => {
  return $axios({
    url: '/student/noselect',
    method: 'get',
    params
  })
}

const selectCourse = (ids) => {
  return $axios({
    url: '/student/selectCourse',
    method: 'get',
    params: { ids }
  })
}

const cancelCourse = (ids) => {
  return $axios({
    url: '/student/cancelCourse',
    method: 'get',
    params: { ids }
  })
}